var B=A.arguments;if(B){if(B.length>0){H.id=B[0]}if(B.length>1){H.fieldsdoc=B[1]}}var F=H.getElementById("typepopup");var G=H.createElement("menuitem");G.setAttribute("label",LP.lpgs("Text"));F.appendChild(G);G=H.createElement("menuitem");G.setAttribute("label",LP.lpgs("Password"));F.appendChild(G);G=H.createElement("menuitem");
var I=L.getElementById("formname").value;if(C==""){LP.alert(LP.lpgs("You must enter a name."),K);return false}var D=lpaccts[L.id];var M=null;var F=null;var G=null;if(D&&D.logins.length>0){M=D.logins[0];G=D.save_all?M.otherfields:M.fields;F=M.urid;for(var E=0;E<G.length;E++){var B=G[E];if(B&&B.name==C&&(!D.save_all||B.formname==I)){LP.alert(LP.lpgs("You must enter a unique name."),K);